package com.lagou.cxz.dao.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @ClassName Article
 * @Description
 * @Author cxz
 * @Date 2020/5/5 15:58 Version V1.0
 */
@Data
@Entity(name = "t_article")
@Component
public class Article implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String title;
    private String content;
    private Date created;

    private Date modified;
    private String categories;

    private String tags;
    @Column(name = "allow_comment")
    private Integer allowComment;
    private String thumbnail;
}
